//
// Created by Administrator on 2021/11/26.
//

#include "Utils.h"

RawData *Utils::read_data() {
    auto rawData = new RawData();
    std::ifstream inFile("foot.raw", std::ios::in | std::ios::binary);
    inFile.read(reinterpret_cast<char *>(rawData->get_data()), VOLUME_Z * VOLUME_X * VOLUME_Y);
    inFile.close();

    return rawData;
}
